import {Controller, Ctx, Get} from "../core/router";
import {Http} from "../core/http";

@Controller('cart')
export default class CartController {

    @Get('')
    public async index(@Ctx() ctx, @Http() http) {

        const result = http.get('v1/cart/list');
        const body = result.data;

        return ctx.render('cart/index');
    }

}
